package com.xt.cloud.kettle.dao;

import com.xt.cloud.kettle.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by cRAZY on 2017/3/1.
 */
@Repository
@Mapper
public interface UserDao {

    public List<UserEntity> getUserbyName(String name);

    public List<UserEntity> getUsersLimit(@Param("start") int start,@Param("limit") int limit,@Param("userGroupName") String userGroupName,@Param("username") String username,@Param("userType") Integer userType);

    public void updateUser(UserEntity user);

    public void deleteUser(Integer userId);

    public void addUser(UserEntity user);

    public Integer getUserCount(String userGroupName);

    public List<UserEntity> getAllUsers();

    public Integer selectMaxId();

    public List<UserEntity> getUsers(String userGroupName);

}
